<div class="menu">
	<div align="right" style="font-weight:bold; font-size:12px; padding-bottom:8px; color:#10498A;">
		<?php echo $this->Access->getMyRole($this->Access->getMy('group_id')).": ".$this->Access->getMy('nombre_completo');?>
	</div>
	<div class="desplegable">
		<?php  $this->Form->new_menu($this->Access->getMy('id'),$this->Access->getMy('group_id'));?>
	</div>
</div>
<div class="aliados form">
<?php echo $this->Form->create('RegistroAliados');?>
	<fieldset>
 		<legend><?php __('Edicion de Registro de Aliados'); ?></legend> 			
 		<table cellpadding="0" cellspacing="0">
	 		<tr>										
				<th class="actions"><?php __('Nombres y apelidos');?></th>
				<th class="actions"><?php __('Cargo');?></th>
				<th class="actions"><?php __('Entidad Aliada');?></th>
				<th class="actions"><?php __('Acciones de apoyo');?></th>
				<th class="actions"><?php __('Estrategias de interaccion');?></th>
				<th class="actions"><?php __('Tipo aporte');?></th>
				<th class="actions"><?php __('Valor estimado del aporte');?></th>				
			</tr>
			<tr>
			<?php		
					$i=0;		
					foreach($aliados AS $aliado){	
						$aliadoss = array();
						$aliado_id = $aliado['RegistroAliado']['id'];						
						$aliadoss = $this->RegistroAliado->registro_mes($aliado_id, $fecha);				
													
			?>
						<td><?php echo $this->Form->input(null, array('type'=>'hidden','label'=>'', 'id'=>'data[identidicador]['.$i.']', 
														'name'=>'data[identidicador]['.$i.']','value'=>$aliadoss['RegistroAliado']['id']))?>			
						<?php echo $this->Form->input(null, array('label'=>'', 'id'=>'data[nombre]['.$i.']', 
														'name'=>'data[nombre]['.$i.']', 'class' => 'text_kit', 
														'type'=>'text', 'value'=>$aliadoss['RegistroAliado']['nombre']))?>
						<?php echo $this->Form->input(null, array('type'=>'hidden','label'=>'', 'id'=>'data[num]['.$i.']', 
														'name'=>'data[num]['.$i.']', 'value'=>$i))?></td>
						<td><?php echo $this->Form->input(null, array('label'=>'', 'id'=>'data[cargo]['.$i.']', 
														'name'=>'data[cargo]['.$i.']', 'class' => 'text_kit', 
														'type'=>'text', 'value'=>$aliadoss['RegistroAliado']['cargo']))?></td>
						<td><?php echo $this->Form->input(null, array('label'=>'', 'id'=>'data[entidad]['.$i.']', 
														'name'=>'data[entidad]['.$i.']', 'class' => 'text_kit', 
														'type'=>'text', 'value'=>$aliadoss['RegistroAliado']['entidad_aliada']))?></td>
						<td><?php echo $this->Form->input(null, array('label'=>'', 'id'=>'data[acciones]['.$i.']', 
														'name'=>'data[acciones]['.$i.']', 'class' => 'text_kit', 
														'type'=>'text', 'value'=>$aliadoss['RegistroAliado']['acciones_apoyo']))?></td>
						<td><?php echo $this->Form->input(null, array('label'=>'', 'id'=>'data[estrategia]['.$i.']', 
														'name'=>'data[estrategia]['.$i.']', 'class' => 'text_kit', 
														'type'=>'text', 'value'=>$aliadoss['RegistroAliado']['estrategia']))?></td>
						<td><?php echo $this->Form->input(null, array('label'=>'', 'id'=>'data[tipo_aporte]['.$i.']', 
														'name'=>'data[tipo_aporte]['.$i.']', 'class' => 'text_kit', 
														'type'=>'text', 'value'=>$aliadoss['RegistroAliado']['tipo_aporte']))?></td>	
						<td><?php echo $this->Form->input(null, array('label'=>'', 'id'=>'data[valor_aporte]['.$i.']', 
														'name'=>'data[valor_aporte]['.$i.']', 'class' => 'text_kit', 
														'type'=>'text', 'value'=>$aliadoss['RegistroAliado']['valor_aporte']))?></td>
			</tr>
			<?php 
					$i++;
					}									
			?>
		</table>
	</fieldset>	
<?php echo $this->Form->input('zona_id', array('type'=>'hidden', 'value'=>$zona_id));?>
<?php echo $this->Form->input('mes', array('type'=>'hidden', 'value'=>$fecha));?>
<?php echo $this->Form->end(__('Guardar', true));?>
</div>